package com.ccp.dev.core.basic.consts;

/**
 * URL常量
 *
 * 示例：
 * controller类
 * @RequestMapping(UrlConstants.PROJECT_ROOT+UrlConstants.PROJECT_MODULE_SYSTEM+"/user")
 * public class SysUserController{
 * ...
 *
 *     @RequestMapping(UrlConstants.MODULE_FUNCTION_LIST)
 *     public Object list(HttpServletRequest request,HttpServletResponse response){
 *         QueryFilter queryFilter=new QueryFilter(request);
 *         List<SysUser> list=sysUserService.getAll(queryFilter);
 *         return ResultData.success(list);
 *     }
 * ...
 *     @RequestMapping(UrlConstants.VIEW_DISPATCH_PREFIX+UrlConstants.MODULE_FUNCTION_LIST)
 *     public String viewList(){
 *         return "list";
 *     }
 *
 * }
 *
 *
 * @@author nd
 */
public class UrlConstants {

    /**
     * 首页请求地址
     */
    public static final String WEB_PAGE_INDEX = "/index";
    /**
     * 首页页面结构布局地址
     */
    public static final String WEB_PAGE_LAYOUT = "/layout";
    /**
     * 首页右侧功能区页面地址
     */
    public static final String WEB_PAGE_HOME = "/home";

    /**
     * root
     */
    public static final String PROJECT_ROOT = "";
    /**
     * 按钮意见弹窗url
     */
    public static final String WINDOWN_URL = "workflow/window/";

    /**
     * 业务模块
     */
    public static final String PROJECT_MODULE_SYSTEM = "/system";
    public static final String PROJECT_MODULE_FORM = "/form";
    public static final String PROJECT_MODULE_WORKFLOW = "/workflow";
    /* demo示例 */
    public static final String PROJECT_MODULE_DEMO = "/demo";
    /* im聊天 */
    public static final String PROJECT_MODULE_IM = "/im";
    /* 代码生成器 */
    public static final String PROJECT_MODULE_GENERATOR = "/generator";
    /**
     * 业务类型
     */
    public static final String MODULE_FUNCTION_ADD_UPDATE = "/add";
    public static final String MODULE_FUNCTION_DELETE = "/del";
    public static final String MODULE_FUNCTION_LIST = "/list";
    public static final String MODULE_FUNCTION_GET = "/get";
    public static final String MODULE_FUNCTION_SAVE = "/save";
    public static final String MODULE_FUNCTION_DELETE_BATCH = "/delBatch";
    public static final  String MODULE_FUNCTION_GET_USER="/getUserListByRoleId";
    /**展示详情**/
    public static final String MODULE_FUNCTION_SHOWINFO = "/showinfo";

    /**
     * 生成代码
     */
    public static final String MODULE_FUNCTION_GENCODES = "/genCodes";

    /**
     *
     */
    public static final String MODULE_FUNCTION_QUERYCOLUMNKEY = "/queryColumnKey";

    /**
     * 页面跳转url前缀
     */
    public static final String VIEW_DISPATCH_PREFIX = "/view";


}
